<template>
	<view class="container">
		<view class="card">
			<view class="title">
				账户余额提现到微信
			</view>
			<view class="num">
				￥<input type="text" :value="moneyNum" placeholder="输入提现金额" placeholder-class="place" />
			</view>
			<view class="bottom">
				<view class="yue">
					账户余额：{{balance}}
				</view>
				<view class="btn" @tap="whole">
					全部提现
				</view>
			</view>
		</view>
		<view class="sure" @tap="tixian">
			提现到微信
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				balance:'500.00',
				moneyNum:''
			};
		},
		onLoad(e) {
			this.balance=e.balance
		},
		methods:{
			whole(){
				this.moneyNum=this.balance
			},
			tixian(){
				uni.showToast({
					title: '正在开发中...',
					icon:'none',
					duration:2000
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	uni-page-body {
		height: 100%;
	}

	page {
		height: 100%;
	}

	.container {
		position: absolute;
		left: 0;
		bottom: 0;
		top: 0;
		right: 0;
		overflow: hidden;
		background: #f2f2f2;

		.card {
			margin-top: 26upx;
			width: 100%;
			// height: 300upx;
			background: #FFFFFF;
			border-radius: 30upx;

			.title {
				height: 60upx;
				width: 92%;
				
				font-family:Microsoft YaHei;
				font-weight:bold;
				color: #FFFFFF;
				font-size: 32upx;
				line-height: 60upx;
				padding-left: 30upx;
				background: #fe5621;
				border-bottom-right-radius: 30upx;
				border-top-right-radius: 30upx;
			}

			.num {
				display: flex;
				align-items: center;
				height: 180upx;
				margin: 0 30upx;
				border-bottom: 2upx solid #e6e6e6;
				font-size: 48upx;
				input {
					font-size: 36upx;
					font-family:Microsoft YaHei;
				}
				.place {
					font-size: 30upx;
				}
			}
			.bottom{
				display: flex;
				justify-content: space-between;
				padding: 26upx 30upx;
				.yue{
					font-size:30upx;
					font-family:Microsoft YaHei;
					font-weight:400;
					color:rgba(52,52,52,1);
				}
				.btn{
					font-family:Microsoft YaHei;
					font-weight:400;
					color:rgba(52,52,52,1);
					margin-right: 20upx;
					font-size: 24upx;
					line-height: 40upx;
				}
			}
		}
		.sure{
			height: 90upx;
			width: 460upx;
			text-align: center;
			line-height: 90upx;
			color: #FFFFFF;
			font-family:Microsoft YaHei;
			font-weight:400;
			font-size: 30upx;
			border-radius: 42upx;
			background: #fe5621;
			margin: 120upx auto;
		}
	}
</style>
